$(() => {
    var consoleElement = <HTMLDivElement>document.getElementById("console");
    var cons = new Pjs2.Pjs2Console(consoleElement);
    cons.WriteLine("Welcome to PJS2 test console");
    cons.runtime.AddFunction(new Pjs2.FunctionDefinition(() => window.close(), [], "exit"));
    //testTypes();
    //Type.ToHashtable();
    Pjs2Loader.LoadDefinitons("cmd/commands.json", cons.runtime);
    cons.Write("Pjs2> ");
    cons.Focus();
});